import MandMobile, { Toast, Dialog } from 'mand-mobile-next'
import 'mand-mobile-next/dist/es/mand-mobile-next.min.css';
import 'normalize.css'
import 'animate.css'
import './base.scss'
import './app.scss'

// ring 加载
export const toast = (content, icon = null, duration = 2000) => {
  if(!content) {
    return Toast.hide()
  }
  
  Toast.create({
    content,
    icon,
    duration,
    position: 'bottom',
    hasMask: true
  })
}

export const dialog = Dialog

export default MandMobile